public class Consumer implements Runnable {
    private Reso rs = new Reso();

    public Consumer(Reso rs) {
        this.rs = rs;
    }

    @Override
    public void run() {
        while(true){
            try {
                rs.consume();
            } catch (InterruptedException e) {
                throw new RuntimeException(e);
            }
        }
    }
}
